import { createRouter, createWebHashHistory } from 'vue-router'
import MyWork from "@/components/MyWork/MyWork.vue";
import Login from "@/components/Login/Login.vue";
import Courses from "@/components/MyWork/左边容器/Courses.vue";
import Cloud from "@/components/MyWork/左边容器/Cloud.vue";

import CourseInfo from "@/components/MyWork/左边容器/CourseInfo.vue";




const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'MyWork',
      component: MyWork,
      children:[
        {
          path:'/',
          name:'Courses',
          component:Courses
        },
        {
          path:"cloud",
          name:"Cloud",
          component:Cloud
        },
        {
          path:"courseInfo",
          name:"CourseInfo",
          component:CourseInfo,
        }
      ]
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    }
  ]
})

export default router
